﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MPEmpresa.master" AutoEventWireup="true" CodeFile="wfConsultaDePostulantes.aspx.cs" Inherits="wfConsultaDePostulantes" %>

<%@ Register assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" ClientIDMode="AutoID" 
        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
        GroupBoxCaptionOffsetY="-18px" HeaderText="Consulta de Postulantes" 
        Height="600px" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
        Width="800px">
        <ContentPaddings PaddingBottom="8px" />
        <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
    <table width="99%">
        <tr>
            <td>
                <dx:ASPxLabel ID="ASPxLabel1" runat="server" ClientIDMode="AutoID" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    Text="Aviso">
                </dx:ASPxLabel>
            </td>
            <td>
                <dx:ASPxComboBox ID="cbxAviso" runat="server" ClientIDMode="AutoID" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    DataSourceID="ObjectDataSource1" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" TextField="Titulo" 
                    ValueField="IdAvisoTrabajo" ValueType="System.String" Width="200px" 
                    AutoPostBack="True" OnSelectedIndexChanged="cbxAviso_SelectedIndexChanged">
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <ValidationSettings>
                        <ErrorFrameStyle ImageSpacing="4px">
                            <ErrorTextPaddings PaddingLeft="4px" />
                        </ErrorFrameStyle>
                    </ValidationSettings>
                </dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <dx:ASPxGridView ID="gvPostulanteCabecera" runat="server" ClientIDMode="AutoID" 
                    ClientInstanceName="gvPostulantes" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                    CssPostfix="PlasticBlue" AutoGenerateColumns="False" 
                    KeyFieldName="IdPostulante" Width="99%" DataSourceID="ObjectDataSource2">
                    <Columns>
                        <dx:GridViewDataTextColumn FieldName="IdPostulante" 
                            ShowInCustomizationForm="True" Visible="False" VisibleIndex="0">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Postulante" FieldName="NombreCompleto" 
                            ShowInCustomizationForm="True" VisibleIndex="0">
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <SettingsPager ShowDefaultImages="False">
                        <AllButton Text="All">
                        </AllButton>
                        <NextPageButton Text="Next &gt;">
                        </NextPageButton>
                        <PrevPageButton Text="&lt; Prev">
                        </PrevPageButton>
                    </SettingsPager>
                    <SettingsDetail ShowDetailRow="True" />
                    <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                        <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                        </LoadingPanelOnStatusBar>
                        <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                        </LoadingPanel>
                    </Images>
                    <ImagesFilterControl>
                        <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                        </LoadingPanel>
                    </ImagesFilterControl>
                    <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                        CssPostfix="PlasticBlue">
                        <Header ImageSpacing="10px" SortingImageSpacing="10px">
                        </Header>
                    </Styles>
                    <StylesEditors>
                        <CalendarHeader Spacing="11px">
                        </CalendarHeader>
                        <ProgressBar Height="25px">
                        </ProgressBar>
                    </StylesEditors>
                    <Templates>
                        <DetailRow>
                            <dx:ASPxGridView ID="gvPostulanteDetalle" runat="server" AutoGenerateColumns="False" 
                                ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                CssPostfix="PlasticBlue" ClientInstanceName="gvPostulanteDetalle" 
                                DataSourceID="ObjectDataSource3" KeyFieldName="IdPostulante" 
                                onbeforeperformdataselect="gvPostulanteDetalle_BeforePerformDataSelect">
                                <Columns>
                                    <dx:GridViewDataTextColumn FieldName="IdPostulante" VisibleIndex="0" 
                                        Visible="False">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Profesion" FieldName="Profesion" 
                                        VisibleIndex="0">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="NivelEstudios" VisibleIndex="1" 
                                        Caption="Nivel Estudios">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="ExperienciaProfesional" VisibleIndex="2" 
                                        Caption="Experiencia Profesional">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Ver Postulante" VisibleIndex="5">
                                        <DataItemTemplate>
                                            <a href="wfConsultaPostulanteDetalle.aspx?pidpostulante=<%# Eval("IdPostulante") %>" shape="rect" style="color: blue;
                                                text-decoration: underline;">Postulante</a>
                                        </DataItemTemplate>
                                    </dx:GridViewDataTextColumn>
                                </Columns>
                                <SettingsPager ShowDefaultImages="False">
                                    <AllButton Text="All">
                                    </AllButton>
                                    <NextPageButton Text="Next &gt;">
                                    </NextPageButton>
                                    <PrevPageButton Text="&lt; Prev">
                                    </PrevPageButton>
                                </SettingsPager>
                                <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                                    CssPostfix="PlasticBlue">
                                    <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                    </Header>
                                </Styles>
                                <StylesEditors>
                                    <CalendarHeader Spacing="11px">
                                    </CalendarHeader>
                                    <ProgressBar Height="25px">
                                    </ProgressBar>
                                </StylesEditors>
                            </dx:ASPxGridView>
                        </DetailRow>
                    </Templates>
                </dx:ASPxGridView>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    SelectMethod="ListarPorEmpresa" 
                    TypeName="BolsaTrabajo.BusinessLogic.AvisoTrabajoLogic">
                    <SelectParameters>
                        <asp:SessionParameter Name="idEmpresa" SessionField="ID" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
                    SelectMethod="ListarCabeceraPorAvisoEmpresa" 
                    TypeName="BolsaTrabajo.BusinessLogic.PostulanteLogic">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="cbxAviso" Name="idAvisoTrabajo" 
                            PropertyName="Value" Type="Int32" />
                        <asp:SessionParameter Name="idEmpresa" SessionField="ID" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
                    SelectMethod="ListarDetallePorPostulante" 
                    TypeName="BolsaTrabajo.BusinessLogic.PostulanteLogic">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="cbxAviso" Name="idAvisoTrabajo" 
                            PropertyName="Value" Type="Int32" />
                        <asp:SessionParameter Name="idEmpresa" SessionField="ID" Type="Int32" />
                        <asp:ControlParameter ControlID="txtIdPostulante" Name="idPostulante" 
                            PropertyName="Text" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <dx:ASPxTextBox ID="txtIdPostulante" runat="server" ClientIDMode="AutoID" 
                    Height="0px" Width="0px">
                </dx:ASPxTextBox>
            </td>
        </tr>
    </table>
            </dx:PanelContent>
</PanelCollection>
    </dx:ASPxRoundPanel>
</asp:Content>

